/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.cast.teseg.modelo;

/**
 *
 * @author edgarin
 */
class Relaciones {
    double capacity; // should be private
    double weight; // should be private for good practice
    int id;
    int origen;
    int destino;
    
    public Relaciones() {}
    
    public Relaciones(double weight, double capacity) {
      //  this.id = edgeCount++; // This is defined in the outer class.
        this.weight = weight;
        this.capacity = capacity;
        }
    
    @Override
    public String toString() { // Always good for debugging
        return "E"+id;
    }
    
    public void setRelacion(int i,int o, int d){
        this.origen= o;
        this.destino= d;        
        this.id= i;
    }

    public double getCapacity() {
        return capacity;
    }

    public int getId() {
        return id;
    }

    public double getWeight() {
        return weight;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    
    
    
}
